<template>
  <div>
    <div>
      <h4>测试单选</h4>
      <el-row>
        <el-col>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.test_radioList">
              <el-radio label="肩痛"></el-radio>
              <el-radio label="感染"></el-radio>
              <el-radio label="年龄大"></el-radio>
              <el-radio label="体质差"></el-radio>
              <el-radio label="其他"></el-radio>
              <el-input v-model="pgForm.test_radioList_input" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "test_radio",
  title: "测试单选",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm: {
        test_radioList: [],
        test_radioList_input: ''
      }
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
}
.el-col {
  margin:10px 0;
}
.el-radio-group{
  padding: 10px 20px;
}
.el-radio{
  display: block;
  margin-bottom: 15px;
}
</style>
